gnttab: eliminate several explicit version checks
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:24:49 +0000 (12:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:24:49 +0000 (12:24 +0200)
commited48c2c71c85b00b4ed5af7acce98a7afd08523f
treea5706bb9074d7ebe15567031cd129d890782f176
parent2fdf3c433a8cba33fae623d7138c173e111b81cb
gnttab: eliminate several explicit version checks

By having nr_grant_entries() return zero when the grant table version
is still unset we can reduce the number of error paths and at once fix
grant_map_exists() running into the being removed ASSERT() when called
for a page owned by a domain not having its grant table set up yet.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c